import server from "../util/request.js";

export function queryByPatientId(id){
    return server({
        url:`/doctor-order/${id}`,
        method:'get'
    })
}

export function addRecord(data){
    return server({
        url:'/doctor-order',
        method:'post',
        data
    })
}
//执行医嘱
export function updateRecord(data){
    return server({
        url:'/doctor-order',
        method:'put',
        data
    })
}